<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>播放器 - 影享圈</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #000;
            color: white;
            height: 100vh;
            padding-top: 44px; /* Status bar height */
        }
        .bg-netflix {
            background-color: #E50914;
        }
        .text-netflix {
            color: #E50914;
        }
        .player-controls {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 16px;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
        }
        .progress-bar {
            height: 4px;
            background-color: rgba(255, 255, 255, 0.3);
            border-radius: 2px;
            position: relative;
        }
        .progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background-color: #E50914;
            border-radius: 2px;
        }
        .comment-bubble {
            position: absolute;
            background-color: rgba(0, 0, 0, 0.6);
            border-radius: 16px;
            padding: 6px 12px;
            max-width: 60%;
            animation: float-up 8s linear forwards;
        }
        @keyframes float-up {
            0% {
                transform: translateY(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-80px);
                opacity: 0;
            }
        }
    </style>
</head>
<body class="relative">
    <div class="fixed top-0 left-0 right-0 z-50 px-4 pt-12 pb-2 flex items-center justify-between bg-black bg-opacity-50">
        <button onclick="window.history.back()">
            <i class="fas fa-chevron-down text-white text-xl"></i>
        </button>
        <div class="flex items-center space-x-4">
            <button>
                <i class="fas fa-closed-captioning text-white text-lg"></i>
            </button>
            <button>
                <i class="fas fa-cog text-white text-lg"></i>
            </button>
        </div>
    </div>

    <!-- 视频播放区域 -->
    <div class="relative h-screen w-full bg-black flex items-center justify-center">
        <img src="https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80" alt="流浪地球2" class="w-full h-full object-cover opacity-50">
        
        <!-- 弹幕评论 -->
        <div class="comment-bubble" style="bottom: 30%; left: 10%;">
            <p class="text-sm">太震撼了！</p>
        </div>
        <div class="comment-bubble" style="bottom: 40%; right: 10%;">
            <p class="text-sm">特效做得真棒</p>
        </div>
        <div class="comment-bubble" style="bottom: 50%; left: 30%;">
            <p class="text-sm">吴京演技爆表！</p>
        </div>
        <div class="comment-bubble" style="bottom: 60%; right: 30%;">
            <p class="text-sm">中国科幻电影崛起了</p>
        </div>
        
        <!-- 播放器控制区 -->
        <div class="absolute inset-0 flex items-center justify-center">
            <div class="w-20 h-20 rounded-full bg-white bg-opacity-30 flex items-center justify-center">
                <i class="fas fa-pause text-white text-3xl"></i>
            </div>
        </div>
        
        <!-- 底部控制栏 -->
        <div class="player-controls">
            <div class="flex justify-between items-center mb-2">
                <span class="text-sm">01:24:15</span>
                <span class="text-sm">03:02:53</span>
            </div>
            <div class="progress-bar mb-6">
                <div class="progress" style="width: 45%;"></div>
                <div class="absolute -top-1.5 left-[45%] w-4 h-4 bg-netflix rounded-full"></div>
            </div>
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-6">
                    <button>
                        <i class="fas fa-backward text-white text-lg"></i>
                    </button>
                    <button>
                        <i class="fas fa-pause text-white text-2xl"></i>
                    </button>
                    <button>
                        <i class="fas fa-forward text-white text-lg"></i>
                    </button>
                </div>
                <div class="flex items-center space-x-6">
                    <button>
                        <i class="fas fa-volume-up text-white text-lg"></i>
                    </button>
                    <button>
                        <i class="fas fa-comment-alt text-white text-lg"></i>
                    </button>
                    <button>
                        <i class="fas fa-expand text-white text-lg"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 发送弹幕评论输入框 -->
    <div class="fixed bottom-5 left-0 right-0 px-4 z-50 opacity-0 transition-opacity duration-300 hover:opacity-100">
        <div class="relative">
            <input type="text" placeholder="发送评论..." class="w-full bg-gray-800 bg-opacity-70 text-white py-2 px-4 pr-10 rounded-full text-sm">
            <button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-white">
                <i class="fas fa-paper-plane"></i>
            </button>
        </div>
    </div>
</body>
</html>
